<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <link href="__PUBLIC__/app/admin/css/public.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/app/admin/css/page.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/js/layer/skin/layer.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__PUBLIC__/app/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/app/admin/js/global.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
</head>
<body style="text-align:center;">
<div style="margin-top: 100px">
<if condition="(empty($sign_message))">
  暂无上传资料
</if>

<if condition="(!empty($sign_message))">
  <if condition="($sign_message.type=='1')">
    
      

      <!-- <div>

      </div> -->


     
   

     <table border='1px'>
      <tr>
        <td align="center">真实姓名:</td>
        <td align="center">{$relation.name}</td>
        <td align="center">身份证正面:</td>
        <td align="center"><img  src="{$relation.z_card}" alt="" style="width: 300px; height:200px "></td>
      </tr>

      <tr>
        <td align="center">身份证反面:</td>
        <td align="center"><img src="{$relation.f_card}" alt="" style="width: 300px; height:200px "></td>
        <td align="center"></td>
        <td align="center"></td>
      </tr>

      <tr>
        <td cols="4" align="center">合同信息:</td>
        
      </tr>

      <tr>
        <td cols="3" align="center"> {$contract['value']}</td> 
        <td cols="1" align="center"> <img src="{$sign_message['sign_pic']}" alt="" style="width: 300px; height:200px "></td> 
        <!-- <td align="center"><img src="{$sign_message['sign_pic']}" alt="" style="width: 300px; height:200px "></td>  -->
      </tr>
      <tr><td cols="2" align="center"><input class="btn" type="submit" onclick='yes({$order.id},{$relation.member_id})' value="通过审核"></td>
          <td cols="2" align="center"><input class="btn" type="submit" onclick='no({$relation.member_id})' value="无法通过"></td>
      </tr>
    </table>
  </if>


  <if condition="($sign_message.type=='2')">
    <table>
      <tr>
        <td align="center">经办人姓名:</td>
        <td align="center">{$relation.name}</td>
        <td align="center">经办人身份证正面:</td>
        <td align="center"><img  src="{$relation.operator_zcard}" alt="" style="width: 300px; height:200px "></td>
      </tr>

      <tr>
        <td align="center">经办人身份证反面:</td>
        <td align="center"><img src="{$relation.operator_fcard}" alt="" style="width: 300px; height:200px "></td>
        <td align="center">营业执照:</td>
        <td align="center"><img src="{$relation.license_pic}" alt="" style="width: 300px; height:200px "></td>
      </tr>

      <tr>
        <td cols="4" align="center">合同信息:</td>
        
      </tr>

      <tr>
        <td cols="3" align="center"> {$contract['value']}</td> 
        <td align="center"><img src="{$sign_message['sign_pic']}" alt="" style="width: 300px; height:200px "></td> 
      </tr>
      <tr><td cols="2" align="center"><input class="btn" type="submit" onclick='yes({$order.id},{$relation.member_id})' value="通过审核"></td>
          <td cols="2" align="center"><input class="btn" type="submit" onclick='no({$relation.member_id})' value="无法通过"></td>
      </tr>
    </table>
    


      
                
                
      

      <!-- <div>

      </div> -->


     
              
    </div>
  </if>
</if>
</div>

</body>
</html>
<script>
  //审核
    function yes(order_id,member_id){
    var url="{:U('Orders/yesexamine')}";
       $.post(url,{'order_id':order_id,'member_id':member_id},function(data){
         layer.msg(data.info);
           if(data.status==1){
               setTimeout(function () { 
                 window.location.reload();
            }, 2000);
          }
       });
}

    function no(member_id){
    var url="{:U('Orders/noexamine')}";
       $.post(url,{'member_id':member_id},function(data){
         layer.msg(data.info);
           if(data.status==1){
               setTimeout(function () { 
                 window.location.reload();
            }, 2000);
          }
       });
}
</script>
